# -*- coding: utf-8 -*-
# vim:et:sw=4:sts=4:ai:nosi
# Copyright (c) 2012 Flibusta Quotes Team
#
# This file is part of Flibusta Quotes.
#
# Flibusta Quotes is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Debugging
DEBUG = False

# Maximum number of quotes on a page
QUOTES_PAGESIZE = 10

# Maximum number of comments on a page
COMMENTS_PAGESIZE = 10

# Default memcache maximum key expiration time
DEFAULT_MEMCACHE_TIME = 1 if DEBUG else 0
# DEFAULT_MEMCACHE_TIME = 0
# DEFAULT_MEMCACHE_TIME = 3600

# Default maximum key expiration time for entities
DEFAULT_ENTITY_CACHE_TIME = 1 if DEBUG else 0

# Maximum allowed length of a quote
MAX_QUOTE_LENGTH = 2048

